//
//  synMessageListModel.m
//  Messenger
//
//  Created by YN on 2017/11/30.
//  Copyright © 2017年 YN-APP-iOS. All rights reserved.
//

#import "SynMessageListModel.h"

@implementation SynMessageListModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.primaryKey=value;
    }
    if (!value) {
        if ([key isEqualToString:@"chatType"]) {
            self.chatType=1;
        }else if ([key isEqualToString:@"unreadCount"]){
            self.unreadCount=0;
        }
    }
}
@end
